package cc.rengu.igas.channel.esb.common.enums;

/**
 * 业务响应码枚举类
 *
 * @author 王成
 * @date 2017/6/27
 */
public enum RespCodeEnum {
    AUTH_RSP_STATUS_ERROR("ER22ES01", "授权应答状态明确失败"),
    NO_FUNC_ERROR("ER22ES02", "不支持此功能"),
    NO_SUCH_OUTPUT_FMT_ERROR("ER22ES03", "不支持此种输出方式"),
    DATE_CAN_NOT_PARSE("ER22ES04", "业务逻辑上日期无法解析"),
    INNER_ACCT_LENGTH_ERROR("ER22ES05", "内部账户长度解析错误"),
    REQ_CONSTRUCT_ERR("ER22ES06", "请求构造失败"),
    NO_AVAILIABLE_TERM_NO("ER22ES07", "没有可用的终端"),
    NO_AVAILIABLE_MCHNT_NO("ER22ES08", "没有可用的商户"),
    GENERATE_SIGN_BLOCK_ERROR("ER22ES09", "生成签名字符串失败"),
    AMOUNT_FORMAT_INCORRECT("ER22ES10", "金额格式输入有误"),
    ACCEPT_SUCCESS("S000A001", "交易受理成功"),
    SYSTEM_ERROR("ER129999", "系统异常");
    private String respCode;
    private String respDesc;

    RespCodeEnum(String respCode, String respDesc) {
        this.respCode = respCode;
        this.respDesc = respDesc;
    }

    public String getRespCode() {
        return respCode;
    }

    public void setRespCode(String respCode) {
        this.respCode = respCode;
    }

    public String getRespDesc() {
        return respDesc;
    }

    public void setRespDesc(String respDesc) {
        this.respDesc = respDesc;
    }
}
